<?xml version="1.0" encoding="UTF-8"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui">

	<p:panel id="panlManaged" header="#{i18n.userinscription_newuser}"
		style="margin-bottom:10px;" styleClass="userInscriptionPanel">
		<h:panelGrid columns="3" cellspacing="5">
			<h:outputLabel value="Pseudo *" for="pseudo" />
			<p:inputText id="pseudo" value="#{userMBean.user.pseudo}"
				label="firtname" required="true" />
			<p:message for="pseudo" />
			<h:outputLabel value="#{i18n.password} *" for="password" />
			<p:password id="password" value="#{userMBean.user.password}"
				feedback="true" label="password" required="true"
				promptLabel="Saisir le mot de passe" weakLabel="leger"
				goodLabel="moyen" strongLabel="bon" />
			<p:message for="password" />
			<h:outputLabel value="#{i18n.firstname}" for="firtname" />
			<p:inputText id="firtname" value="#{userMBean.user.firtName}"
				label="firtname" />
			<p:message for="firtname" />
			<h:outputLabel value="#{i18n.lastname}" for="lastname" />
			<p:inputText id="lastname" value="#{userMBean.user.lastName}"
				label="lastname" />
			<p:message for="lastname" />
			<h:outputLabel value="Email" for="email" />
			<p:inputText id="email" value="#{userMBean.user.email}" label="email" />
			<p:message for="email" />
		</h:panelGrid>
		<p:commandButton id="submit" value="OK" style="width :80px;"
		actionListener="#{userMBean.createUser}" update="panelUserGestion"
		process=":formUserGestion:panlManaged" />
	</p:panel>
	
</ui:composition>
